package org.itboys.mobile.entity.mysql;




import org.itboys.mysql.entity.BaseMySqlEntity;

import java.math.BigDecimal;

/**
 * 作者：jiangxiong
 * 日期：2017年10月26日
 * 联系方式 ：empty90911@126.com
 * 天街_消费卡_充值产品_实体
 */
public class TianJieWalletProduct extends BaseMySqlEntity {

	//基础属性
	//private Long memberId;//用户ID
    private BigDecimal amount;//充值金额
    private Integer type;//1，消费卡充值，2，游戏充值
    private Integer gameAmount;//游戏充值对应的游戏币数量
    public TianJieWalletProduct() {

    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Integer getGameAmount() {
        return gameAmount;
    }

    public void setGameAmount(Integer gameAmount) {
        this.gameAmount = gameAmount;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String  getTypeStr(){
        String typeStr= "";
        if(type==null)return typeStr;

        switch (type) {
            case 1:
                typeStr="消费卡充值类产品";
                break;
            case 2:
                typeStr="游戏充值类产品";
                break;
            default:
                break;
        }
        return typeStr;
    }
}
